package com.z.sys.controller;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;

@Controller
@Api(tags = "登录首页")
public class IndexController {

    @GetMapping({"/index", "/"})
    @ApiOperation("首页")
    public String index(){
        return "sys/index";
    }

    @GetMapping("welcome")
    @ApiOperation("welcome")
    public String welcome(){
        return "sys/welcome";
    }

    @GetMapping("login.html")
    @ApiOperation("登录页面")
    public String login(){
        return "sys/login";
    }
}
